{template Public:Page:header}
<div class="container">
  <div class="row">
      <div class="widget radius-bordered">
        <div class="widget-header"> <span class="widget-caption"><i class="glyphicon glyphicon-user"></i> {echo C('sitename')}会员帐号验证激活</span> </div>
        <div class="widget-body">
             <div class="row">
             <div class="col-lg-offset-1 col-lg-10" style=" padding-top:50px;padding-bottom:120px;">
           	<form method="post" id="VerifyForm">
              {if $manage['regtype']=='mobile'}
              		<div class="col-lg-2">
                         <p style="padding-top:5px;">
					<div class="btn btn-circle btn-lg" style="margin-left:50px;"><i class="glyphicon glyphicon-earphone"></i></div>
                         </p>
                    </div>
             	    <div class="col-lg-6">
                       <div class="row">
                         <h3>马上验证手机，激活你的账号！</h3>
                        <p class="label label-info">验证码已通过短信发送至<b>{echo $verifyname}</b>，请输入完成验证</p>
                        <p class="alt">手机绑定是为保障用户的信息真实性和帐号安全性</p>
                         <div class="form-group has-feedback">
                           <div class="input-group">
   
                                 <span class="input-group-addon ">验证码</span><input type="text" name="code" value="" class="form-control" data-bv-notempty="true" data-bv-notempty-message="<i class='fa fa-frown-o'></i> 对不起,请输入激活码！" data-bv-regexp="true" data-bv-regexp-regexp="^[0-9]+$" data-bv-regexp-message="<i class='fa fa-frown-o'></i> 对不起,请输入激活码格式有误！" data-bv-field="code"> 
                                 <div class="input-group-btn"><button class="btn btn-success shiny  control-label" type="submit">提交验证</button></div>
                          
       				 </div>
                          </div>
                          </div>
                          
                          <div class="row">
                      
                         <p>若长时间未收到，请点此<a href="javascript:void(0);" onclick="SubmitVerifySend({echo $id});" class="label label-danger">重新发送</a></p>
                    
                         </div>
                     </div>
              {else}
            	    <div class="col-lg-2">
                         <p style="padding-top:5px;">
					<div class="btn btn-circle btn-lg" style="margin-left:50px;"><i class="glyphicon glyphicon-envelope"></i></div>
                         </p>
                    </div>
             	    <div class="col-lg-6">
                       <div class="row">
                         <h3>马上验证邮箱，激活你的账号！</h3>
                        <p class="label label-info">验证码已通过邮箱发送至<b>{echo $verifyname}</b>，请输入完成验证</p>
                        <p class="alt">邮箱绑定是为保障用户的信息真实性和帐号安全性</p>
                         <div class="form-group has-feedback">
                           <div class="input-group">
                                 <span class="input-group-addon ">验证码</span><input type="text" AUTOCOMPLETE="off"  name="code" value="" class="form-control" data-bv-notempty="true" data-bv-notempty-message="<i class='fa fa-frown-o'></i> 对不起,请输入激活码！" data-bv-regexp="true" data-bv-regexp-regexp="^[a-zA-Z0-9]+$" data-bv-regexp-message="<i class='fa fa-frown-o'></i> 对不起,请输入激活码格式有误！" data-bv-field="code"> 
                                 <div class="input-group-btn"><button class="btn btn-success shiny  control-label" type="submit">提交验证</button></div>
                          
       				 </div>
                          </div>
                          </div>
                          
                          <div class="row">
                      
                         <p>若长时间未收到，请点此<a href="javascript:void(0);" onclick="SubmitVerifySend({echo $id});" class="label label-danger">重新发送</a></p>
                    
                         </div>
                     </div>
                
                        
              {/if}
              
              <input name="Submit" type="hidden" value="true"/>
              <input name="id" type="hidden" value="{echo $id}"/>
              </form>
             </div>
      </div>
    
        </div>
      </div>
  </div>
</div>



<!--Page Related Scripts-->
<script src="{echo AURL}/js/validation/bootstrapValidator.js"></script>

<script>
function SubmitVerifySend(id){
	
	  $.post('{echo U("/get/register/sendcode")}',$("#VerifyForm").serialize(), function(json) {
		
			$('.bootbox').PhpappProgress({json:json});

			return true;
		
	  }, 'json');
	  

	 bootbox.dialog({
		 message: '<div class="progress progress-striped active"><div style="width: 1%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="20" role="progressbar" class="progress-bar progress-bar-info"><span>0%</span></div></div>',
		 title: '<i class="icon fa fa-retweet"></i> 发送中',
		 closeButton: false
	 }).PhpappProgress({time:2000});
 
	  return false; 
	
}
 
$(document).ready(function () {

  $('#VerifyForm').bootstrapValidator();

});
 

</script>



{template Public:Page:footer}